//
//  categoriesViewController.h
//  NewIMGII
//
//  Created by 步遴 李 on 12-6-11.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#import "EGORefreshTableHeaderView.h"
#import "Category.h"

@interface categoriesViewController : UIViewController
<UITableViewDataSource,UITableViewDelegate>
{
    AppDelegate *appdelegate;
    NSManagedObjectContext *context;
    NSEntityDescription *entity;
    NSInteger categoriesCount;
    NSArray *categories;
    NSPredicate *pre;
    NSFetchRequest *cdrequest;
    NSError *error;
    UITableView *categoriesTable;
}
@property (strong,nonatomic) IBOutlet UITableView *catstable;
@property (strong,nonatomic) Category *category;
@property (retain,nonatomic) NSArray *categories;
-(void)refreshCategorys;
@end
